package com.elvt.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.elvt.server.pojo.Department;
import com.elvt.server.utils.RespSult;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 作者：elvt
 * @since 2022-05-21
 */
public interface IDepartmentService extends IService<Department> {
    /**
     * 获取所有部门
     * @return
     */
    List<Department> getAllDepartments();

    /**
     * 添加部门
     * @param department 数据
     * @return
     */
    RespSult addDepartment(Department department);

    /**
     * 根据id删除部门
     * @param id 条件
     * @return
     */
    RespSult deleteDepById(Integer id);
}
